<?php


namespace app\admin\service;


use app\admin\model\TagArticle as TagArticleModel;

class TagArticleService
{
    protected $model;
    public function __construct()
    {
        $this->model = app()->make(TagArticleModel::class);
    }

    public function delete($where) {
        $this->model->where($where)->delete();
    }

    public function queryOne($where) {
        return $this->model->where($where)->find();
    }

    public function insertAll($data) {
        $this->model->insertAll($data);
    }
}